#include<stdio.h>
#include<string.h>
int main()
{
	struct per{
		char name[20];
		int count;
	}a[3]={"li",0,"zhang",0,"sun",0};
	char b[20];
	for(int i=0;i<10;i++)
	{
		scanf("%s",&b);
		if(strcmp(b,a[0].name)==0)
		a[0].count++;
		else if(strcmp(b,a[1].name)==0)
		a[1].count++;
		else
		a[2].count++;
	}
	printf("\nResult:\nli:%d\nzhang:%d\nsun:%d\n",a[0].count,a[1].count,a[2].count);
 } 
